import sys
from pathlib import Path

# 添加项目根目录到 sys.path
sys.path.append(str(Path(__file__).parent.parent.resolve()))

from src.config import settings  # 绝对导入

if __name__ == "__main__":
    import uvicorn
    uvicorn.run('src.app:app', host=settings.SERVER_HOST, port=settings.SERVER_PORT, reload=True)